<template>
  <page-body>
    <view class="page">
      <view class="flex benben-position-layout flex flex-wrap align-center scheduledetail_flex_0"
        :style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
        <view class='flex flex-wrap align-center justify-between flex-sub scheduledetail_fd0_0'>
          <view class='flex flex-wrap align-center scheduledetail_fd0_0_c0' @tap.stop="handleJumpDiy" data-type="back"
            data-url="1">
            <text class='fu-iconfont2  scheduledetail_fd0_0_c0_c0'>&#xE794;</text>
          </view>
          <view class='flex flex-wrap align-stretch justify-center'>
            <text class='scheduledetail_fd0_0_c1_c0'>档期详情</text>
          </view>
          <view class='flex flex-wrap align-center justify-end scheduledetail_fd0_0_c0'>
          </view>
        </view>

      </view>
      <view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
      <!---flex布局flex布局开始-->
      <view class="flex flex-direction align-stretch benben-flex-layout">
        <view class='flex flex-direction flex-wrap align-stretch scheduledetail_fd1_0'>
          <view class='flex flex-wrap align-center'>
            <view class='flex flex-direction flex-wrap align-stretch flex-sub scheduledetail_fd1_0_c0_c0'>
              <view class='flex flex-wrap align-center scheduledetail_fd1_0_c0_c0_c0'>
                <text>{{info.customerinfo_customer_name}}</text>
                <text class='scheduledetail_fd1_0_c0_c0_c0_c1'>{{info.customerinfo_customer_phone}}</text>
                <image class='scheduledetail_fd1_0_c0_c0_c0_c2' mode="aspectFill"
                  v-if="info.customerinfo_customer_types==2" :src='STATIC_URL+"153.png"'></image>
              </view>
              <view class='flex flex-wrap align-end self-center scheduledetail_fd1_0_c0_c0_c1'>
                <text class='scheduledetail_fd1_0_c0_c0_c1_c0'>婚期时间：</text>
                <text class='self-center'>{{info.customerinfo_date_time}}</text>
              </view>
              <view class='flex flex-wrap align-end self-center scheduledetail_fd1_0_c0_c0_c1'>
                <text class='scheduledetail_fd1_0_c0_c0_c1_c0'>销售姓名：</text>
                <text class='self-center'>{{info.nickname}}</text>
              </view>
              <view class='flex flex-wrap align-end self-center scheduledetail_fd1_0_c0_c0_c1'>
                <text class='scheduledetail_fd1_0_c0_c0_c1_c0'>婚礼地点：</text>
                <text class='self-center'>{{info.beizhuxinxi || '暂未填写'}}</text>
              </view>
              <view class='flex flex-wrap align-end self-center scheduledetail_fd1_0_c0_c0_c1'>
                <text class='scheduledetail_fd1_0_c0_c0_c1_c0'>租赁婚纱：</text>
                <text class='self-center'>{{info.ben_time}} 至 {{info.end_time}}</text>
              </view>
            </view>
          </view>
        </view>
        <view class='flex flex-direction flex-wrap align-stretch scheduledetail_fd1_0'
          v-for="(item,index) in info.wedding_dress_list">
          <view class='flex flex-wrap align-center'>
            <view class='flex flex-direction flex-wrap align-stretch flex-sub scheduledetail_fd1_0_c0_c0'>
              <view class='flex flex-wrap align-center'>
                <text class='scheduledetail_fd1_0_c0_c0_c1_c0'>租赁婚纱{{index+1}}</text>
              </view>
            </view>
          </view>

          <swiper class="swiper-box" :indicator-dots="true" :autoplay="true" :interval="3000" :duration="1000">
            <swiper-item @click="prevImage(itemC,item.weddingdress_wedding_dress_image,indexC)" class="swiper-item"
              v-for="(itemC,indexC) in item.weddingdress_wedding_dress_image" :key="indexC">
              <image class='scheduledetail_fd1_1_c1' mode="aspectFill" :src='itemC'></image>
            </swiper-item>
          </swiper>
          <view class='flex flex-wrap align-center justify-end scheduledetail_fd1_1_c2'>
            <text>婚纱编号：{{item.weddingdress_wedding_dress_number}}</text>
          </view>
          <!-- <view class='flex flex-direction flex-wrap align-stretch flex-sub scheduledetail_fd1_0_c0_c0'>
            <view class='flex flex-wrap align-center scheduledetail_fd1_1_c3_c0'>
              <text class='scheduledetail_fd1_0_c0_c0_c1_c0'>租赁婚纱</text>
            </view>
          </view>
          <text class='scheduledetail_fd1_0_c0_c0'>{{info.ben_time}} 至 {{info.end_time}}</text> -->
        </view>
      </view>

      <!---flex布局flex布局结束-->


    </view>
  </page-body>
</template>
<script>
  export default {
    components: {},


    data() {
      return {
        info: ''
      };
    },
    computed: {

    },
    watch: {},
    onLoad(options) {
      let {
        aid
      } = options
      if (aid !== undefined) this.aid = aid
      this.getDetail()
    },
    onUnload() {

    },
    onReady() {

    },
    onShow() {

    },
    onHide() {

    },
    onResize() {

    },
    onPullDownRefresh() {

    },
    onReachBottom(e) {

    },
    onPageScroll(e) {

    },
    methods: {
      prevImage(item, list, index) {

        uni.previewImage({
          urls: list,
          current: index
        })
      },
      getDetail() {
        this.$api.post(global.apiUrls.post66c6aad1d58ff, {
          aid: this.aid
        }).then(res => {
          if (res.data.code == 1) {
            this.info = res.data.data
          }
        })
      },
    }
  };
</script>
<style lang="scss" scoped>
  .page {
    width: 100vw;
    overflow-x: hidden;
    min-height: calc(100vh - var(--window-bottom));
    background: #F8F8F8;
    background-size: 100% auto;
  }

  .scheduledetail_flex_0 {
    background: #fff;
    width: 750rpx;
    height: 88rpx;
    overflow: hidden;
    z-index: 10;
    top: 0rpx;
    background-size: 100% auto !important;
  }

  .scheduledetail_fd0_0_c1_c0 {
    font-size: 36rpx;
    font-weight: 700;
    color: #333333;
    line-height: 50rpx;
  }

  .scheduledetail_fd0_0_c0_c0 {
    font-size: 36rpx;
    color: #333;
  }

  .scheduledetail_fd0_0_c0 {
    width: 120rpx;
  }

  .scheduledetail_fd0_0 {
    padding: 0rpx 32rpx 0rpx 32rpx;
  }

  .scheduledetail_fd1_1_c3_c0 {
    margin: 24rpx 0rpx 24rpx 0rpx;
  }

  .scheduledetail_fd1_1_c2 {
    // border-bottom: 1px solid #eee;
    font-size: 32rpx;
    color: rgba(153, 153, 153, 1);
    // padding: 0rpx 0rpx 24rpx 0rpx;
  }

  .swiper-box {
    height: 521rpx;
    border-radius: 16rpx;
    height: 521rpx;
    margin: 24rpx 0rpx 24rpx 0rpx;
  }

  .swiper-item {
    height: 521rpx;
    height: 521rpx;
  }

  .scheduledetail_fd1_1_c1 {
    height: 521rpx;
    height: 521rpx;
    border-radius: 16rpx;
    // margin: 24rpx 0rpx 24rpx 0rpx;
  }

  .scheduledetail_fd1_0_c0_c0_c1_c0 {
    color: rgba(153, 153, 153, 1);
  }

  .scheduledetail_fd1_0_c0_c0_c1 {
    margin: 24rpx 0rpx 0rpx 0rpx;
  }

  .scheduledetail_fd1_0_c0_c0_c0_c2 {
    width: 115rpx;
    height: 34rpx;
  }

  .scheduledetail_fd1_0_c0_c0_c0_c1 {
    margin: 0rpx 24rpx 0rpx 24rpx;
  }

  .scheduledetail_fd1_0_c0_c0_c0 {
    font-weight: 600;
  }

  .scheduledetail_fd1_0_c0_c0 {
    font-size: 32rpx;
  }

  .scheduledetail_fd1_0 {
    background: #FFFFFF;
    border-radius: 24rpx 24rpx 24rpx 24rpx;
    padding: 24rpx 24rpx 24rpx 24rpx;
    margin: 24rpx auto 0rpx auto;
    width: 686rpx;
  }
</style>
